package com.zhangtai.modules.entity.employee;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zhangtai.config.LongJsonDeserializer;
import com.zhangtai.config.LongJsonSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * 
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2020-09-16 11:40:47
 */
@Data
@TableName("tb_relative_records")
public class RelativeRecordsEntity implements Serializable {
	private static final long serialVersionUID = 1L;

			/**
		 * 
		 */
			@TableId
		@JsonDeserialize(using = LongJsonDeserializer.class)
		@JsonSerialize(using = LongJsonSerializer.class)
			private Long id;
			/**
		 * 亲属姓名
		 */
			@ApiModelProperty(value="亲属姓名",required = true)
			private String name;
			/**
		 * 亲属身份证
		 */
			@ApiModelProperty(value="亲属身份证",required = true)
			private String idcard;
			/**
		 * 任职单位部门
		 */
			@ApiModelProperty(value="任职单位部门",required = true)
			private String unit;
			/**
		 * 岗位
		 */
			@ApiModelProperty(value="岗位",required = true)
			private String job;
			/**
		 * 1:直系亲属，2：间接亲属
		 */
			@ApiModelProperty(value="1:直系亲属，2：间接亲属",required = true)
			private String isDirectRelative;
			/**
		 * 与本人关系
		 */
			@ApiModelProperty(value="与本人关系",required = true)
			private String relative;
			/**
		 * 
		 */
			private Integer isDelete;
			/**
		 * 员工id
		 */
			@NotNull(message = "员工id不能为空")
			@ApiModelProperty(value="员工id",required = true)
			@JsonDeserialize(using = LongJsonDeserializer.class)
			@JsonSerialize(using = LongJsonSerializer.class)
			private Long oid;
	
}
